{% load i18n admin_modify adminmedia %}
{% load url from future %}
<!DOCTYPE html>
<html>
<head>
<title>OWMX</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/styles/a.css" media="screen">
{% block extrahead %}
{% url 'admin:jsi18n' as jsi18nurl %}
<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
{{ media }}
{% endblock %}
<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";</script>
</head>
<body class="{{ opts.app_label }}-{{ opts.object_name.lower }} change-form">
<div id="a">
  {% if not is_popup %}
  <header> <a href="/admin/" title="Go to Homepage"><strong>OWMX</strong> LOGISTIC</a>
    <p>Panel Administracyjny</p>
  </header>
  {% endif %}
  <div id="b">
    {% if not is_popup %}
    <aside>
      <h4>Zalogowany jako</h4>
      <div id="c"> <img src="/images/jonas-jacek.png" alt="{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}">
        <p><strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong></p>
        <p>{% url 'admin:password_change' as password_change_url %}
                {% if password_change_url %} <a href="{{ password_change_url }}">
                {% else %} <a href="{{ root_path }}password_change/">{% endif %}Zmień hasło</a></p>
        <p>{% url 'admin:logout' as logout_url %} {% if logout_url %} <a href="{{ logout_url }}"> {% else %}
                    <a href="{{ root_path }}logout/">{% endif %}Wyloguj</a></p>
      </div>
	{% block object-tools %}{% if change %}{% if not is_popup %}
	<nav>
        <ul class="object-tools">
          {% block object-tools-items %}
            <li>
              <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
          {% endblock %}
        </ul>
	</nav>
{% endif %}{% endif %}{% endblock %}
    </aside> {%endif%}
        <article>
<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %}
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
{% if save_on_top %}{% submit_row %}{% endif %}
{% if errors %}
    <p class="errornote">
    {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
    </p>
    {{ adminform.form.non_field_errors }}
{% endif %}

{% for fieldset in adminform %}
  {% include "admin/includes/fieldset.html" %}
{% endfor %}

{% block after_field_sets %}{% endblock %}

{% for inline_admin_formset in inline_admin_formsets %}
    {% include inline_admin_formset.opts.template %}
{% endfor %}

{% block after_related_objects %}{% endblock %}

{% block submit_buttons_bottom %}
  {% submit_row %}
  <input type="submit" value="{% trans 'wyswietl mape' %}" name="_preview" {{ onclick_attrib }}/>
{% endblock %}

{% if adminform and add %}
   <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
{% endif %}

{# JavaScript for prepopulated fields #}
{% prepopulated_fields_js %}
</form>
        </article>
  </div>
  <footer>
    <p><!--Template Design &amp; Markup by <a href="http://jabz.net/contact/jonas-jacek">Jonas Jacek</a> | <a href="http://owmx.com/" title="Free HTML5 &amp; CSS3 Web Templates">Free Web Templates</a>.--></p>
  </footer>
</div>
</body>
</html>
